﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QuanLySieuThi.Help;

namespace QuanLySieuThi.GUI
{
    public partial class frmQuanLyNhanVien : Form
    {
        
        public frmQuanLyNhanVien()
        {
            InitializeComponent();
        }
        public void LoadDS()
        {

            CDataProvider dp = new CDataProvider();
            dp.OpenConnect();
            dgvDSNV.DataSource = dp.LoadDS("select * from NhanVien");
        }

        private void QuanLyNhanVien_Load(object sender, EventArgs e)
        {
            LoadDS();
            int sl = dgvDSNV.RowCount - 1;
            lbSoLuong.Text = "Số lượng : " + sl.ToString();
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            Close();

        }

        private void dgvDSNV_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }
    }
    
}
